#ifndef _CONSTANTS_H_
#define _CONSTANTS_H_

// Define constants
#define PI      3.141592
#define RADIAN  57.29579 // 180 / pi
#define DEGREE  0.017453 // pi / 180
#define BLACK   0
#define WHITE   255

#define RED     2
#define GREEN   1
#define BLUE    0
#define R       RED
#define G       GREEN
#define B       BLUE

#define ORG_WIDTH   640
#define ORG_HEIGHT  480
#define ORG_SIZE    (ORG_WIDTH * ORG_HEIGHT)

#define WRK_WIDTH   (ORG_WIDTH / 2)
#define WRK_HEIGHT  (ORG_HEIGHT / 2)
#define WRK_SIZE    (WRK_WIDTH * WRK_HEIGHT)

#define IMG_WIDTH   (WRK_WIDTH)
#define IMG_HEIGHT  (WRK_HEIGHT)
#define IMG_SIZE    (IMG_WIDTH * IMG_HEIGHT)

#define SCALE_FACTOR ((float) ORG_WIDTH / (float) WRK_WIDTH)

#endif
